package com.yuyou.tas.service.api.lesson.service;

import com.yuyou.tas.service.api.lesson.entity.Lesson;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "tas-lesson-service")
@RequestMapping(value = "/lessonAPI")
public interface LessonAPI {

	
	@RequestMapping(value = "/sycnLessonsByOId")
	ResBoolSimpleInfo<String> sycnLessonsByOId(@RequestBody List<Lesson> list)throws Exception;
	
	@RequestMapping(value = "/delByOrgan7OIds")
	ResBoolSimpleInfo<String> delByOrgan7OIds(@RequestParam("oIds") List<Long> oIds,@RequestParam("authOrganizationId") Long authOrganizationId)
			throws Exception;


	@RequestMapping(value = "/getById")
	Lesson getById(@RequestParam("id") Long id)throws Exception;

}
